package com.cloudfun.campusshare.common.model.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Created by Huqin on 2020/5/29
 */
@Data
@ApiModel("用户优惠券状态统计列表VO")
public class UserCouponStatusStatListVO {

    @ApiModelProperty("用户Id")
    private final String userId;

    @ApiModelProperty("用户手机号")
    private final String userPhone;

    @ApiModelProperty("已用数量")
    private Integer usedCount = 0;

    @ApiModelProperty("未使用数量")
    private Integer unusedCount = 0;

    @ApiModelProperty("过期数量")
    private Integer expiredCount = 0;

    @ApiModelProperty("作废数量")
    private Integer invalidCount = 0;

    public UserCouponStatusStatListVO(String userId, String userPhone) {
        this.userId = userId;
        this.userPhone = userPhone;
    }

    public void addUsedCount() {
        this.usedCount++;
    }

    public void addUnusedCount() {
        this.unusedCount++;
    }

    public void addExpiredCount() {
        this.expiredCount++;
    }

    public void addInvalidCount() {
        this.invalidCount++;
    }
}
